package day05;

public class All {
        public static void main(String[] args) {
            Gardener gardener = new Gardener();

            Fruit apple = gardener.createFruit("Apple");
            Fruit banana = gardener.createFruit("Banana");
            Fruit grape = gardener.createFruit("Grape");

            if (apple != null) apple.printMessage();
            if (banana != null) banana.printMessage();
            if (grape != null) grape.printMessage();
        }
    }


